<?php

namespace app\common\library;

class ReSuccess extends YuResult
{

    public static $instance ;

    /**
     * @title 单例调用
     * @description 单例调用
     * @author Admin ldy
     * @time 2018/9/25  12:22
     */
    public static function getInstance(){
        if (ReSuccess::$instance == null){
            ReSuccess::$instance = new \app\common\library\ReSuccess;
            return ReSuccess::$instance;
        }else{
            return ReSuccess::$instance;
        }
    }

    public function __construct($msg='',$data=null,$code=0,$status=1){
        parent::__construct($msg,$data,1,1);
    }

}
